package forTest;

public class SumTest {
	public static void main(String[] args) {
		/*
		 * int sum = 0; for (int i = 0 ; i <=100;i++){ sum += i; }
		 * System.out.println(sum);
		 */
		// 1/1+1/2+1/3+......+1/10
		double sum = 0;
		for (int i = 0; i < 10; i++) {
			sum += 1.0 / i;
		}
		System.out.println(sum);

	}

}
